<!DOCTYPE html>
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title>CirclePoint Hotels</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <link href="css/bootstrap.css" rel="stylesheet">
    <link href="css/datepicker.css" rel="stylesheet">
	<link href="css/bootstrap-responsive.css" rel="stylesheet">
	<script src="./js/jquery.js"></script>
    <style type="text/css">
    body {
		padding-top: 60px;
		padding-bottom: 40px;
    }
	html,
	body {
    height: 100%;
	}
 
	#wrap {
		min-height: 100%;
		height: auto !important;
		height: 100%;
		margin: 0 auto -60px;
	}
	#push,
	#footer {
		height: 60px;
	}
    </style>
    <script type="text/javascript">
$(document).ready(function(){
   $("#login").click(function(){
    
        username=$("#Email").val();
        password=$("#Password").val();
         $.ajax({
            type: "POST",
            url: "processlogin.php",
            data: "email="+username+"&pwd="+password,
            success: function(html){
              if(html=='true')
              {
				$("#divlogin").html("			<p class='navbar-text pull-right'>Logged In</p>");
				location.reload();
              }
              else
              {
					alert('Incorrect Password');
              }
            }
        });
         return false;
    });
});
</script>

  </head>

  <body>

    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="brand" href="/">CirclePoint Hotels</a>
          <div class="nav-collapse collapse">
            <ul class="nav">
              <li class="active"><a href="/">Home</a></li>
              <li><a href="about.php">About</a></li>
              <li><a href="contact.php">Contact</a></li>
              <li><a href="register.php">Register</a></li>
			  <li><a href="Maps.php">Maps</a></li>
			  
            </ul><div id="divlogin">
			<form class='navbar-form pull-right'><input class='span2' id='Email' type='text' placeholder='Email'><input class='span2' id='Password' type='password' placeholder='Password'><button type='submit' id='login' class='btn'>Sign in</button></form></div>
          </div>
        </div>
      </div>
    </div>

    <div class="container">

<h1>Search Results</h1>


<script type="text/javascript">

$(document).ready(function(){

$(function(){

    var data=[{"roomStandardRate":"234.99","roomTypeDescription":"King Size Deluxe - Non Smoking","smokingYN":"no"},{"roomStandardRate":"234.99","roomTypeDescription":"King Size Deluxe - Non Smoking","smokingYN":"no"},{"roomStandardRate":"234.99","roomTypeDescription":"King Size Deluxe - Non Smoking","smokingYN":"no"},{"roomStandardRate":"234.99","roomTypeDescription":"King Size Deluxe - Smoking","smokingYN":"no"},{"roomStandardRate":"234.99","roomTypeDescription":"King Size Deluxe - Smoking","smokingYN":"no"},{"roomStandardRate":"234.99","roomTypeDescription":"King Size Deluxe - Smoking","smokingYN":"no"},{"roomStandardRate":"199.99","roomTypeDescription":"King Size Standard - Non Smoking","smokingYN":"no"},{"roomStandardRate":"199.99","roomTypeDescription":"King Size Standard - Non Smoking","smokingYN":"no"},{"roomStandardRate":"199.99","roomTypeDescription":"King Size Standard - Non Smoking","smokingYN":"no"},{"roomStandardRate":"199.99","roomTypeDescription":"King Size Standard - Smoking","smokingYN":"no"},{"roomStandardRate":"199.99","roomTypeDescription":"King Size Standard - Smoking","smokingYN":"no"},{"roomStandardRate":"199.99","roomTypeDescription":"King Size Standard - Smoking","smokingYN":"no"},{"roomStandardRate":"179.99","roomTypeDescription":"Queen Size Standard - Non Smoking","smokingYN":"no"},{"roomStandardRate":"179.99","roomTypeDescription":"Queen Size Standard - Non Smoking","smokingYN":"no"},{"roomStandardRate":"179.99","roomTypeDescription":"Queen Size Standard - Non Smoking","smokingYN":"no"},{"roomStandardRate":"179.99","roomTypeDescription":"Queen Size Standard - Smoking","smokingYN":"no"},{"roomStandardRate":"179.99","roomTypeDescription":"Queen Size Standard - Smoking","smokingYN":"no"},{"roomStandardRate":"179.99","roomTypeDescription":"Queen Size Standard - Smoking","smokingYN":"no"},{"roomStandardRate":"149.99","roomTypeDescription":"Twin Beds Standard - Non Smoking","smokingYN":"no"},{"roomStandardRate":"149.99","roomTypeDescription":"Twin Beds Standard - Non Smoking","smokingYN":"no"},{"roomStandardRate":"149.99","roomTypeDescription":"Twin Beds Standard - Smoking","smokingYN":"no"},{"roomStandardRate":"149.99","roomTypeDescription":"Twin Beds Standard - Smoking","smokingYN":"no"}];
    
    var items="";
	
    $.each(data,function(index,item){
	items+="<div class='well'><table width='100%'><tr><td width='150'><img src='img/hotel.jpg' height='128' width='128'></td><td align='left'><h3>"+item.roomTypeDescription+"</h3></td><td align='right'><h3>$"+item.roomStandardRate+"/night</h3></td>	<td align='right' width='300'><input class='btn btn-primary btn-large' value='Reserve This Room'></td></tr></table></form></div>";
    });
	
    $("#content").html(items);
    
    
});

});

</script>
<?php include 'footer.php'; ?>